package the.workshop.bu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import org.wisteria.framework.web.mvc.entity.SuperEntity;

/**
 * <p>
 * 
 * </p>
 *
 * @author lei.liu
 * @since 2020-06-15
 */
@TableName("bu_customer_tel")
public class CustomerTel extends SuperEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 客户ID
     */
    @TableField("customer_id")
    private Integer customerId;

    /**
     * 号码
     */
    @TableField("tel_number")
    private String telNumber;

    /**
     * 是否法人的号码。0否；1是
     */
    @TableField("is_legal")
    private Integer isLegal;

    /**
     * 是否无效的。0否；1是
     */
    @TableField("is_invalid")
    private Integer isInvalid;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }
    public String getTelNumber() {
        return telNumber;
    }

    public void setTelNumber(String telNumber) {
        this.telNumber = telNumber;
    }
    public Integer getIsLegal() {
        return isLegal;
    }

    public void setIsLegal(Integer isLegal) {
        this.isLegal = isLegal;
    }
    public Integer getIsInvalid() {
        return isInvalid;
    }

    public void setIsInvalid(Integer isInvalid) {
        this.isInvalid = isInvalid;
    }

    @Override
    public String toString() {
        return "{" +
            "id=" + id +
            ", customerId=" + customerId +
            ", telNumber=" + telNumber +
            ", isLegal=" + isLegal +
            ", isInvalid=" + isInvalid +
        "}";
    }
}
